% The struct setupProj with the required information to run the optimization
setupProj.appOrder    = appOrder;
setupProj.appOrderVar = appOrderVar;
setupProj.appOrderPer = appOrderPer;
setupProj.endoMeanGrid= endoMeanGrid;
setupProj.muGrid      = muGrid;
setupProj.meanXPer    = meanXPer;
setupProj.xGrid       = xGrid;
setupProj.n_nodes     = n_nodes;
setupProj.epsi_nodes  = epsi_nodes';
setupProj.weight_nodes= weight_nodes';
setupProj.modelPer    = modelPer;
setupProj.numCPUs     = numCPUs;
setupProj.gSS         = modelPer.g0;
setupProj.hSS         = modelPer.h0;
setupProj.hx          = modelPer.hx;
setupProj.eta         = modelPer.eta;
setupProj.params      = modelPer.params;
setupProj.nx1         = modelPer.nx1;
setupProj.nx          = modelPer.nx;
setupProj.ny          = modelPer.ny;
setupProj.mx          = modelPer.mx;
setupProj.myx         = modelPer.myx;
setupProj.labelx      = modelPer.labelx;
setupProj.labely      = modelPer.labely;
setupProj.scaleX_in_g = diagStdX;
setupProj.optimizer   = optimizer;
setupProj.dispOn      = dispOn;
setupProj.maxNumEval  = maxNumEval;
setupProj.MaxIter     = MaxIter;
setupProj.tolF        = tolF;
setupProj.tolX        = tolX;